<template>
  <div class="hello-container">
    <div class="card">
      <div class="icon-wrapper">
        <svg class="logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69">
          <path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/>
          <path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/>
        </svg>
      </div>

      <h1 class="title">
        <span class="gradient-text">Hello World-09:36</span>
      </h1>

      <p class="subtitle">欢迎来到 Vue 3 的精彩世界，我是chenk</p>

      <div class="features">
        <div class="feature-item">
          <div class="feature-icon">⚡</div>
          <div class="feature-text">极速体验</div>
        </div>
        <div class="feature-item">
          <div class="feature-icon">🎨</div>
          <div class="feature-text">优雅设计</div>
        </div>
        <div class="feature-item">
          <div class="feature-icon">🚀</div>
          <div class="feature-text">开箱即用</div>
        </div>
      </div>

      <div class="tech-stack">
        <span class="tech-badge">Vue 3</span>
        <span class="tech-badge">Vite</span>
        <span class="tech-badge">Composition API</span>
      </div>
    </div>

    <div class="footer">
      <p>由 Vue 3 + Vite 强力驱动</p>
    </div>
  </div>
</template>

<script setup>
// 使用 Vue 3 Composition API
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hello-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 60px 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.icon-wrapper {
  margin-bottom: 30px;
}

.logo {
  width: 100px;
  height: 100px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.title {
  margin-bottom: 20px;
}

.gradient-text {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
  font-weight: 300;
}

.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  font-size: 2.5rem;
  animation: bounce 2s ease-in-out infinite;
}

.feature-item:nth-child(2) .feature-icon {
  animation-delay: 0.2s;
}

.feature-item:nth-child(3) .feature-icon {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.feature-text {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.tech-stack {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tech-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.footer {
  margin-top: 40px;
  color: white;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .card {
    padding: 40px 30px;
  }

  .gradient-text {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .features {
    gap: 20px;
  }

  .feature-icon {
    font-size: 2rem;
  }
}
</style>
